//
//  TextSegment.h
//  NewsMaker Touch
//
//  Created by Reisen on 10/8/14.
//  Copyright (c) 2014 Reisen. All rights reserved.
//

#import "Segment.h"
#import <AVFoundation/AVFoundation.h>
#import "TalkRecordingView.h"
#import "VideoReader.h"

@interface InterviewSegment : Segment
{
    float duration;
    
    BOOL isPaused;
    BOOL isPlaying;
    
    AVAudioPlayer* bgmPlayer;
    NSTimer* playbackTimer;
    double playbackStarted;
    double lastPlaybackLoop;
    
    
    AVPlayer* aPlayer;
    UIView* aLayer;
    
    AVPlayer* qPlayer;
    UIView* qLayer;
    
    UILabel* label1;
    UILabel* label2;
    UIImageView* preloadQImage;
    
    NSMutableArray* questionViews;
    NSMutableArray* answerViews;
    NSDictionary* stringAttributes;
    
    VideoReader* aReader;
    VideoReader* q1Reader;
    VideoReader* q2Reader;
    VideoReader* q3Reader;
    float q1Dur;
    float q2Dur;
    float q3Dur;
    
    UIImageView* previewImage;
}

//Quest
@property(nonatomic,strong)NSString* q1;
@property(nonatomic,strong)NSString* q1_sub;
@property(nonatomic,strong)NSString* q2;
@property(nonatomic,strong)NSString* q2_sub;
@property(nonatomic,strong)NSString* q3;
@property(nonatomic,strong)NSString* q3_sub;

//Quest Media       //MP4 with no sound
@property(nonatomic,strong)NSString* q1_mp4;
@property(nonatomic,strong)NSString* q1_mp3;
@property(nonatomic,strong)NSString* q2_mp4;
@property(nonatomic,strong)NSString* q2_mp3;
@property(nonatomic,strong)NSString* q3_mp4;
@property(nonatomic,strong)NSString* q3_mp3;

@property(nonatomic,strong)NSString* vid_mp4;
@property(nonatomic,strong)NSString* src_template;

@property(nonatomic,assign)RecordingTimeInfo recordTimeInfo;
-(void)swipeLeft;
-(void)swipeRight;
-(void) goToLastQuestion;
@end
